package com.hengxinguotong.zhihuichengjian.widget.font;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

import com.hengxinguotong.zhihuichengjian.utils.Utils;

public class HXTextView extends TextView {

    public HXTextView(Context context) {
        super(context);
        init(null, context);
    }

    public HXTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(attrs, context);
    }

    public HXTextView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init(attrs, context);
    }

    private void init(AttributeSet attrs, Context context) {
        if (isInEditMode()) {
            return;
        }
        setIncludeFontPadding(false);
//        setTypeface(Utils.getTypeface(context));
    }

}
